//package com.allwees.data.dataport.module.useraction.api;
//
//import com.allwees.bs.core.modelbase.vo.R;
//import com.allwees.data.dataport.common.api.BaseApi;
//import com.allwees.data.dataport.module.useraction.repository.es.ActionLogEsRepository;
//import com.allwees.data.dataport.module.useraction.req.ActionLogReq;
//import com.allwees.data.dataport.module.useraction.service.ActionLogService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//
//@Slf4j
//@RestController
//@RequestMapping("/api/v1/pua")
//public class ActionLogApi extends BaseApi {
//	@Autowired
//	private ActionLogService actionLogService;
//
//	@Autowired
//	private ActionLogEsRepository actionLogEsRepository;
//
//	@GetMapping("/v")
//	public R logAction(HttpServletRequest request, ActionLogReq req) {
////		ActionLog actionLog = req.toActionLog();
////		actionLog.updateRequestInfo(request);
////		actionLogService.saveToEs(actionLog);
//		return R.ok();
//	}
//
//	@GetMapping("/r")
//	public R refresh(int total) {
//		actionLogService.refresh(total);
//		return R.ok();
//	}
//
//	@GetMapping("/{uuid}")
//	public R getBy(@PathVariable String uuid) {
////		Optional<ActionLog> aLog = actionLogEsRepository.findById(uuid);
////		log.info(">>>>>>>>> log:{}",aLog);
////		return R.ok(aLog);
//		return R.ok();
//	}
//}
